package com.tengfei.main.user.domain.bo.quBank;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author feige
 * @version v1.0
 * @date 2022-09-01-16:26
 * @description
 */
@Data
@ApiModel("用户题目答案业务对象")
@Accessors(chain = true)
public class UserQuAnsBo {

    /**
     * id
     */
    @ApiModelProperty(value = "id(id为空时为上传答案,id不为空时修改答案)")
    private Long id;

    /**
     * 题库id
     */
    @ApiModelProperty(value = "题库id",required = true)
    @NotNull(message = "题库id不能为空")
    private Long qbId;


    /**
     * 题目id
     */
    @ApiModelProperty(value = "题目id",required = true)
    @NotNull(message = "题目id不能为空")
    private Long quId;


    /**
     * 题目类型
     */
    @ApiModelProperty(value = "题目类型",required = true)
    @NotNull(message = "题目类型不能为空")
    private Long quType;

    /**
     * 题目答案
     */
    @ApiModelProperty(value = "题目答案(多个答案用$号隔开)",required = true)
    @NotBlank(message = "题目答案不能为空(多个答案用$号隔开)")
    private String quAnswer;

}
